import { z } from 'zod';
export const openApiSchema = z
    .union([z.string(), z.array(z.string())])
    .describe('A string or an array of strings of absolute or relative urls pointing to your OpenAPI files');
export const apiSchema = z
    .object({
    baseUrl: z.union([z.string().url(), z.array(z.string().url())]).optional(),
    auth: z
        .object({
        method: z.enum(['bearer', 'basic', 'key', 'cobo']).optional(),
        name: z.string().optional(),
        inputPrefix: z.string().optional(),
    })
        .strict()
        .optional(),
    playground: z
        .object({
        mode: z.enum(['show', 'simple', 'hide']).optional().default('show'),
    })
        .optional(),
    request: z
        .object({
        example: z
            .object({
            showOptionalParams: z.boolean().optional().default(false),
        })
            .optional(),
    })
        .optional(),
    maintainOrder: z.boolean().optional(),
})
    .strict();
